<!--/*-->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Hi Microsoul Control Panel</title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script language="javascript" type="text/javascript" src="include/js/common.js"></script>
    <script language="javascript" type="text/javascript" src="images/edit/edit.js"></script>
    <script language="javascript" type="text/javascript" src="include/js/admin.js"></script>
    <script language="javascript" type="text/javascript" src="include/js/ajax.js"></script>
    <script language="javascript" type="text/javascript" src="include/js/selectdate.js"></script>
    <link href="edit/edit.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!--*/-->
<!--{!#system,common}-->
<!--{!&system}-->
<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td><h1>{!user_title}</h1></td>
        <td class="actions">
            <table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
                <tr>
                    <td><a href="#{system/users}#">{!user_list}</a></td>
                    <td><a href="#{system/adduser}#">{!user_add}</a></td>
                    <td class="active"><a href="#{system/managers}#">{!user_admin}</a></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<form method="post" id="theform" action="#{system/manageraction}#" name="thevalueform" enctype="multipart/form-data">
    <h2>${uid??{!manager_update}!{!manager_add}}</h2>
    <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
        <tr>
            <th width="50">{!user_name}</th>
            <td>
                <input type="text" name="username" value="${username}" size="50">
                <input type="hidden" name="uid" value="${uid!!0}" size="50">
            </td>
        </tr>
         <tr>
            <th>{!resource_role}</th>
            <td><!--{loop $roles $k $v}-->
                    <input type="checkbox" name="roles[]" value="${v[0]}" xtc="(intval($auth) & $v[0])>0">${v[1]}&nbsp;
                <!--{/loop}-->
            </td>
        </tr>
    </table>
    <div class="buttons">
        <input type="submit" name="updatesubmit" value="{!common_submit}" class="submit">
        ${uid??<input type="button" value="{!common_back}" onClick="location.href='#{/system/managers}#'">}
    </div>
    <h2>{!manager_list}</h2>
    <table cellspacing="0" cellpadding="0" width="100%" class="listtable">
        <tr>
            <th width="50">{!common_delete}</th>
            <th width="150">{!user_name}</th>
            <th>{!resource_role}</th>
            <th width="50">{!common_operation}</th>
        </tr>
        <!--{loop $mangers $v}-->
        <tr>
            <td><input type="checkbox" name="delete[]" value="${v[uid]}"></td>
            <td>${v[username]}</td>
            <td>${v[rolelist]}</td>
            <td align="center"><a href="#{/system/managers/${v[uid]}}#">{!common_details}</a></td>
        </tr>
        <!--{/loop}-->
        <table cellspacing="0" cellpadding="0" width="100%" class="btmtable">
            <tr>
                <th><input type="checkbox" name="chkall" onclick="checkall(this.form, 'delete')">{!common_select_all}
                </th>
            </tr>
        </table>
    </table>
    <div class="buttons">
        <input type="submit" name="listsubmit" value="{!common_submit}" class="submit">
    </div>
</form>
<!--/*--></body>
</html><!--*/-->